const Index = ({ database, onRefresh }) => {
	const config = {
		modal:{
			title 	: '创建表',
			width 	: '40%',
		},
		form: {
			labelWidth: 's5',
			api: 'mysql/create_table',
			way:'post',
			infoApi : false,
			param: { database },
			data: [
				{ label: '表名', name: 'table_name', r:1 },
			],
			onOk:onRefresh
		}
	}
	return config
}

export default Index